.PHONY:all
all:tcp_client tcp_server

LDFLAG=#-DSelfDefine=1 -ljsoncpp

tcp_client:TcpClientMain.cc
	g++ -o $@ $^ $(LDFLAG) -ljsoncpp -std=c++11 -lpthread

tcp_server:TcpServerMain.cc
	g++ -o $@ $^ $(LDFLAG) -ljsoncpp -std=c++11 -lpthread


.PHONY:clean
clean:
	rm -rf tcp_server tcp_client